<template>
    <div class="vacation">
        <div class="vacation-title">
            周末去哪里
        </div>
        <ul>
            <li class="vacation-item"
            v-for="item in vacationList"
             @click="toDatails">
                <div class="vacation-img">
                    <img :src="item.imgUrl" alt="">
                </div>
                <div class="vacation-msg">
                    <p>{{item.title}}</p>
                    <p>{{item.msg}}</p>
                </div>
            </li>
            
        </ul>
    </div>
</template>
<script>
export default {
    props:["vacationList"],
    data(){
        return{
            
        }
    },
    methods:{
        toDatails(){
            this.$router.push("/detail")
        }
    }
}
</script>
<style scoped>
.vacation{
   background: #fff;

}
.vacation-title{
    margin: .1rem 0;
    padding: .2rem 0;
    font-size: .32rem;
}
.vacation-item{
    margin-bottom: .1rem;
    font-size: .28rem;
}
.vacation-img{
    width: 100%;
    height: 3rem;
    padding-bottom: .32.4375%;
}
.vacation-img img{
    width: 100%;
    height: 3rem;
}
.vacation-msg{
    padding: .2rem 0 .2rem .2rem;

}
.vacation-msg p{
    margin-top: .2rem;

}
.vacation-msg p+p{
    color: #616161;
    font-size: .24rem;
}
</style>